import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/${name}/list',
    method: 'get',
    params
  })
}

export function create${name?capitalize}(data) {
  return request({
    url: '/${name}/create',
    method: 'post',
    data
  })
}

export function update${name?capitalize}(data) {
  return request({
    url: '/${name}/update',
    method: 'post',
    data
  })
}

export function delete${name?capitalize}(data) {
  return request({
    url: '/${name}/delete',
    method: 'post',
    data
  })
}
